/**
 * Created by guobaogang on 2019-2-25.
 */
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import 'src/hrpub/common/static/fonts/iconfont.css'
import {createPage} from 'nc-lightapp-front';

import HomePage from './container';
import {handleHash,getAppPageConfig} from "src/hrpub/common/utils/utils";
const appcode = getAppPageConfig().appcode, pagecode = getAppPageConfig().pagecode;
// const appcode ='60110315', pagecode = '60110315p';
let Account = handleHash('2019', `c=${appcode}&p=${pagecode}`)(createPage({
    billinfo: [{
        billtype: 'grid',
        pagecode: appcode,
        bodycode: 'contractList'
    }, {
        billtype: 'grid',
        pagecode: appcode,
        bodycode: 'agreementList'
    }, {
        billtype: 'form',
        pagecode: '60110303',
        headcode: 'dataCard'
    }, {
        billtype: 'extcard',
        pagecode: '60110305',
        headcode: 'dataBase',
        bodycode: ['dataBefore', 'dataAfter']
    }, {
        billtype: 'extcard',
        pagecode: '60110307',
        headcode: 'dataBase',
        bodycode: ['dataBefore', 'dataAfter']
    }, {
        billtype: 'form',
        pagecode: '60110309',
        headcode: 'dataCard'
    }, {
        billtype: 'form',
        pagecode: '60110311',
        headcode: 'dataCard'
    }, {
        billtype: 'form',
        pagecode: '60110501',
        headcode: 'postcontCard'
    }, {
        billtype: 'form',
        pagecode: '60110501',
        headcode: 'secrerycontCard'
    }, {
        billtype: 'form',
        pagecode: '60110501',
        headcode: 'traincontCard'
    }, {
        billtype: 'extcard',
        pagecode: '60110503',
        headcode: 'agreementCard',
        bodycode: ['postcontCardBefore', 'postcontCardAfter']
    }, {
        billtype: 'extcard',
        pagecode: '60110503',
        headcode: 'agreementCard',
        bodycode: ['secrerycontCardBefore', 'secrerycontCardAfter']
    }, {
        billtype: 'extcard',
        pagecode: '60110503',
        headcode: 'agreementCard',
        bodycode: ['traincontCardBefore', 'traincontCardAfter']
    }, {
        billtype: 'form',
        pagecode: '60110505',
        headcode: 'postcontCard'
    }, {
        billtype: 'form',
        pagecode: '60110505',
        headcode: 'secrerycontCard'
    }, {
        billtype: 'form',
        pagecode: '60110505',
        headcode: 'traincontCard'
    }, {
        billtype: 'form',
        pagecode: '60110507',
        headcode: 'postcontCard'
    }, {
        billtype: 'form',
        pagecode: '60110507',
        headcode: 'secrerycontCard'
    }, {
        billtype: 'form',
        pagecode: '60110507',
        headcode: 'traincontCard'
    }]
})(HomePage));
ReactDOM.render(<Account/>,
    document.querySelector('#app'));